< previous page page_230 next page >

Page 230
Table 11.6 Flags for the Print Dialog Box.
Flag ConstantDescription
cdlPDAllPagesThis flag sets the state of the All Pages option button.
cdlPDCollateThis flag sets the state of the Collate check box.
cdlPDDisablePrintToFileSet this flag to disable the Print to File check box.
cdlPDHidePrintToFileSet this flag to hide the Print to File check box.
cdlPDNoPageNumsSet this flag to disable the Pages option button.
cdlPDPageNumsSet this flag to enable the Pages option button.
cdlPDPrintSetupSet this flag to call the Print Setup dialog box.
cdlPDPrintToFileSet this flag to enable the Print To File check box.

Print Setup Dialog
Besides setting print options, you may want the user to actually change the default printer. The standard Windows Print Setup Dialog box can be called by the same method used previously, but you must first set the Flags property to the constant cdlPDPrintSetup. Figure 11.9 shows the Print Setup dialog box.
8160-0230a.gif
Figure 11.9
The Print Setup dialog box.
This dialog box is generated by the following code:
9f31265bb40b592b1929e18a47ab28e5.gif
Private Sub cmdPrintSetup_Click()
   ' Select the Print Setup Flag
   cdlCommon.Flags = cdlPDPrintSetup

   ' Display the Print Setup Dialog Box
   cdlCommon.ShowPrinter
End Sub

 
< previous page page_230 next page >

If you like this book, buy it!